package com.smart.community.region.entity;

import java.io.Serializable;
import java.time.LocalDateTime;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.Version;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 店铺业主实体类
 * 
 * @author Wu.Liang
 * @version 1.0.0
 * @since 2025-01-30
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("sc_shop_owner")
@Schema(description = "店铺业主实体")
public class ShopOwner implements Serializable {
    
    private static final long serialVersionUID = 1L;
    
    @TableId(value = "id", type = IdType.AUTO)
    @Schema(description = "业主ID")
    private Long id;
    
    @TableField("owner_name")
    @Schema(description = "业主姓名")
    private String ownerName;
    
    @TableField("owner_phone")
    @Schema(description = "业主电话")
    private String ownerPhone;
    
    @TableField("owner_id_card")
    @Schema(description = "身份证号")
    private String ownerIdCard;
    
    @TableField("owner_type")
    @Schema(description = "业主类型：1-个人，2-企业")
    private Integer ownerType;
    
    @TableField("company_name")
    @Schema(description = "企业名称")
    private String companyName;
    
    @TableField("company_license")
    @Schema(description = "营业执照号")
    private String companyLicense;
    
    @TableField("contact_address")
    @Schema(description = "联系地址")
    private String contactAddress;
    
    @TableField("email")
    @Schema(description = "邮箱")
    private String email;
    
    @TableField("status")
    @Schema(description = "状态：0-禁用，1-启用")
    private Integer status;
    
    @TableField("remark")
    @Schema(description = "备注")
    private String remark;
    
    @TableField("create_time")
    @Schema(description = "创建时间")
    private LocalDateTime createTime;
    
    @TableField("update_time")
    @Schema(description = "更新时间")
    private LocalDateTime updateTime;
    
    @TableField("create_by")
    @Schema(description = "创建人")
    private Long createBy;
    
    @TableField("update_by")
    @Schema(description = "更新人")
    private Long updateBy;
    
    @TableField("deleted")
    @Schema(description = "删除标志：0-未删除，1-已删除")
    private Integer deleted;
    
    @Version
    @TableField("version")
    @Schema(description = "版本号")
    private Integer version;
}